Add wrappers for setting the WidgetClass.activate_signal field
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 4 Dec 2020 17:01:23 +0000 (17:01 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Sat, 5 Dec 2020 01:04:18 +0000 (01:04 +0000)
commitb3e03fa6f0e91ea088c47b7d4f0571dff847a3e1
tree6a3dc81779fb28e3674036804bfbb10de00e5830
parentc0586ca6e2fe2f449f747dabd924bab964a8d6cb
Add wrappers for setting the WidgetClass.activate_signal field

Setting a field on a class structure is not always an easy task from
languages other than C. While bindings can provide access to the class
pointer, twiddling the fields in the class structure can be awkward.
Additionally, signal ids are not always readily available.

We can paper over the direct access to the class structure, as well as
the "signal name to id" mapping with a simple couple of setter
functions.
docs/reference/gtk/gtk4-sections.txt
gtk/gtkwidget.c
gtk/gtkwidget.h